package com.nifostasky.comic.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.nifostasky.comic.entitys.SysRole;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.Map;

/**
 * Mapper 接口
 * @author RunNet_w
 * @since 2021-03-01
 */
@Mapper
@Repository
public interface SysRoleMapper extends BaseMapper<SysRole> {

    /**
     * 角色分页查询
     * @param page 分页
     * @param param 参数
     * @return
     */
    IPage<SysRole> page(Page<SysRole> page, @Param("param") Map<String, Object> param);

}
